package com.模板方法模式.方法模板;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/7/7 10:10
 * @description:
 * @version:
 */
public class Student {
    String name;
    int grade;//成绩

    public Student(String name, int grade) {
        this.name = name;
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", grade=" + grade +
                '}';
    }
}